package com.isunf.common.utils;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @version:1.0
 * @author xmj
 * 
 */
public class CheckNullUtil {

	public static boolean isNull(Object var) {
		return var == null || "".equals(var);
	}

	public static boolean isNullList(List list) {
		return list == null || list.size() == 0;
	}
	
	public static boolean isNullSet(Set list) {
		return list == null || list.size() == 0;
	}
	
	public static boolean isNullMap(Map map) {
		return map == null || map.size() == 0;
	}
	
	public static boolean isNullLong(Long var) {
		return var == null || var<=0;
	}
	
	public static boolean isNullInteger(Integer var) {
		return var == null || var<=0;
	}
	
}